package ThreadBasic;

import java.nio.ByteBuffer;

/**
 * @author yyh
 * @create 2020-10-22 9:30
 */
public class Test2 {
    public static void main(String[] args) {
        int i1 = 10;
        Integer i2 = 10;
        Integer i3 = new Integer(10);
        Integer i4 = i3;
        System.out.println(i1==i2);
        System.out.println(i2==i3);
        System.out.println(i3 == i4);


//        Thread t1 = new Mthread();
//        t1.run();
//        for (int i = 0; i < 10000; i++) {
//            System.out.println("主线程："+i);
//        }
    }



}

class Mthread extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 10000; i++) {
            System.out.println("分支线程："+i);
        }
    }
}
